package cn.istartfinancial.config.datasource;

import com.github.pagehelper.PageHelper;
import java.util.Properties;

/**
 * @author: Nzp
 * @date: 2018/8/31 9:30
 * @description: 分页插件配置 目前使用spring boot配置
 */
public class PageHelperConfig
{
    public PageHelper getPageHelper()
    {
        PageHelper pageHelper = new PageHelper();
        Properties properties = new Properties();
        properties.setProperty("helperDialect", "mysql");
        properties.setProperty("reasonable", "true");
        properties.setProperty("supportMethodsArguments", "true");
        properties.setProperty("params", "count=countSql");
        pageHelper.setProperties(properties);
        return pageHelper;
    }
}
